package demo02;

public class java01 {
	public static void main(String[] args) {
		int num=567;
		int gw=num%10;
		int sw=num%100/10;
		int bw=num/100;
		int sum=gw+sw+bw;
		System.out.println(bw);
		System.out.println(sw);
		System.out.println(gw);
		System.out.println(sum);
	}
}
